package com.example.auth.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * @ClassName UserController
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2020/4/26 11:22 AM
 * @Version 1.0
 */
@RestController
public class UserController {
	@GetMapping("/user")
	public Principal getCurrentUser(Principal principal) {
		return principal;
	}
}
